package morning.cat;

import morning.cat.service.MyService;
import org.springframework.context.support.GenericXmlApplicationContext;

/**
 * @describe: 类描述信息
 * @author: morningcat.zhang
 * @date: 2020/1/12 4:57 PM
 */
public class Starter5AsXmlAndAnnotation {

	public static void main(String[] args) {
		GenericXmlApplicationContext applicationContext = new GenericXmlApplicationContext("META-INF/bean-scan.xml");
		MyService myService = applicationContext.getBean(MyService.class);
		System.out.println(myService);

		myService.getUserService().sayHello();
	}
}
